//
//  DraftView.h
//  Knowbox
//
//  Created by yestem on 14-11-15.
//  Copyright (c) 2014年 knowin. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^ViewDidUpdate)(void);

@class SimDrawViewModel;
@interface SimDrawView : UIImageView
{
    SimDrawViewModel *_drawModel;
}

@property (nonatomic, strong) SimDrawViewModel *drawModel;
@property (nonatomic, strong) UIColor *strokeColor;
@property (nonatomic, strong) ViewDidUpdate viewDidUpdate;

@property (nonatomic) CGFloat strokeWidth;
@property (nonatomic) CGRect clipRect;

- (void)clear;
- (void)revocation;
- (void)reform;

- (BOOL)canClear;
- (BOOL)canRevocation;
- (BOOL)canReform;

- (void)addPoint:(CGPoint)point;
- (void)finishPoint;

- (void)mergeImageForImage:(UIImage *)mergeImage;

@end
